//
//  LWAccountPayView.m
//  LWShopItem
//
//  Created by apple on 17/5/7.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import "LWAccountPayView.h"

@interface LWAccountPayView()

@property (weak, nonatomic) IBOutlet UILabel *sunLabel;

@property (weak, nonatomic) IBOutlet UILabel *expenseLabel;
@property (weak, nonatomic) IBOutlet UILabel *offsetLabel;

@property (weak, nonatomic) IBOutlet UILabel *truePayLabel;


@end

@implementation LWAccountPayView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (instancetype)accountPayView {
    return [[NSBundle mainBundle] loadNibNamed:@"LWAccountPayView" owner:nil options:nil].lastObject;

}
-  (void)setSum:(double)sum {
    _sum = sum;
    _sunLabel.text = [NSString stringWithFormat:@"¥%.2lf",_sum];
    
    _truePayLabel.text = [NSString stringWithFormat:@"¥%.2lf",_sum];
}
@end
